package com.mzj.saas.mservice.propertybill.repository;


import com.mzj.saas.mservice.propertybill.entity.EstateAdjustBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

public interface EstateAdjustBillRepository extends PagingAndSortingRepository<EstateAdjustBill, Long>, JpaSpecificationExecutor<EstateAdjustBill>, JpaRepository<EstateAdjustBill, Long> {
    EstateAdjustBill findByBillId(Long billId);
    Optional<EstateAdjustBill> findByBillIdAndBillType(Long billId, Long billType);
}
